{{- $class := .Attributes.class | default "" -}}
{{- $filename := .Attributes.filename | default "" -}}
{{- $filename_uri_base := .Attributes.filename_uri_base | default "" -}}
{{- $lang := .Attributes.lang | default .Type -}}


<div class="hextra-code-block hx-relative hx-mt-6 first:hx-mt-0 hx-group/code">
  {{ partial "components/mycodeblock" (dict "filename" $filename "lang" $lang "filename_uri_base" $filename_uri_base "content" .Inner "options" .Options) }}

  {{- if or (eq site.Params.highlight.copy.enable nil) (site.Params.highlight.copy.enable) }}
    {{- partialCached "components/codeblock-copy-button" (dict "filename" $filename) $filename }}
  {{ end }}
</div>